TARGET = sinuca

LIBS = -lglut -lGLU -lGL -lXext -lX11 -lm #-lXmu -lXi
CFLAGS = -g -std=gnu99 -Wall -pedantic #-ansi

CC = gcc

DEP =  action.o camera.o lights.o functions.o texture.o lamps.o poolTable.o physics.o misc.o

default: $(TARGET)

all: default

$(TARGET): $(TARGET).c headers.h  $(DEP)
	$(CC) $@.c $(CFLAGS) $(LIBS) -o $@ $(DEP)

run: all
	./$(TARGET)&

clean:
	-rm -f *.o $(TARGET)

cleanall: clean
	rm -f *~

